﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    internal class TermAmountSubtractMap : ClassMap<TermAmountSubtract>
    {
        public TermAmountSubtractMap()
        {
            Table("TERM_AMOUNT_SUBTRACT");
            Id(x => x.TermAmountSubtractId, "TERM_AMOUNT_SUBTRACT_ID").GeneratedBy.Identity();
            Map(x => x.TermAmountSubtractDesc, "TERM_AMOUNT_SUBTRACT_DESC");
            Map(x => x.TermAmountSubtractType, "TERM_AMOUNT_SUBTRACT_TYPE");
            Map(x => x.TermAmountSubtractDate, "TERM_AMOUNT_SUBTRACT_DATE");
            Map(x => x.TermAmountSubtractAsset, "TERM_AMOUNT_SUBTRACT_ASSET");
            Map(x => x.TermAmountSubtractAmount, "TERM_AMOUNT_SUBTRACT_AMOUNT");
            Map(x => x.TermAmountSubtractCumulative, "TERM_AMOUNT_SUBTRACT_CUMULATIVE");
            Map(x => x.TermAmountSubtractLastUpdate, "TERM_AMOUNT_SUBTRACT_LAST_UPDATE");
            Map(x => x.TermAmountSubtractRemark, "TERM_AMOUNT_SUBTRACT_REMARK");

        }
    }
}
